package com.fang.six.srv.command;

public class ProcessArray {

    public void process(int[] target, Command command) {
        command.process(target);
    }

    public static void main(String[] args) {
        ProcessArray processArray = new ProcessArray();
        int[] target = {3, -4, 6, 4};
        processArray.process(target, new PrintCommand());
        System.out.println("-----------------------");
        processArray.process(target, new AddCommand());
    }

}
